﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WxStockWinSvc.Models.Enums;
using DX.CRC.Common.WebUtil;

namespace WxStockWinSvc.Models.Entities
{
    public class StockBaseInfo
    {        
        public string StockCode { get; set; }
        public string ExCode_Field { get; set; }

        public ChinaExchangeCategory ExchangeCode { get { return CommonUtility.Convert2Enum(ExCode_Field, ChinaExchangeCategory.Unknown); } }

        public StockBaseInfo()
        {
            StockCode 
            = ExCode_Field 
            = string.Empty;
        }
    }
}
